<%@page import="javax.cache.Cache"%>
<%@page import="java.util.Collections"%>
<%@page import="javax.cache.CacheException"%>
<%@page import="javax.cache.CacheManager"%>
<%@page import="java.util.ArrayList"%>
<%
Cache caches=null;
try {
    caches = CacheManager.getInstance().getCacheFactory().createCache(Collections.emptyMap());
} catch (CacheException e) {
   e.printStackTrace();
   
}
ArrayList<String> view = null;
if(caches.containsKey("view"))
{
	view = (ArrayList<String>) caches.get("view");
}
%>
<h1>Recent site view</h1>
<ul >
	<%
		if(view!=null)
		{
			for(int j=0;j<view.size();j++)
			{
			%>
				<li><a href="/d/<%=view.get(j) %>" rel="nofollow"><%=view.get(j) %></a></li>
	<%
			}
		}
	%>
</ul>			
